#ifndef _PointLight_H_
#define _PointLight_H_

#pragma once
#include "Light.h"

class PointLight : public Light {
private:
	Color illuminance;
	Vector3 position;

public:
	PointLight(const Color &illuminance, const Vector3 &position, Float strength = 1.0, bool shadow = true) : position(position), illuminance(illuminance) {
		this->strength = strength;
		this->shadow = shadow;
	}
	~PointLight() {}

	LightSample L(const Scene * scene, const Vector3 &position, const Vector3 & normal) const;
};

#endif // _PointLight_H_